TenWebOptimizer\OptimizerImages D

Total Complexity 191
Dependencies 5
Dependents 1
Total lines 924
Lines of code 646
Logical lines of code 387
Comment lines 104
Methods 37
Properties 7

Methods 37

Method Rating Maintainability Complexity Lines of code
process_image()
C
33 23 93
add_lazyload()
B
39 19 61
build_source_tag()
A
47 14 33
get_images()
A
48 13 32
add_attachment_id_to_img()
A
43 12 44
isExcluded()
A
51 9 25
get_size_from_tag()
S
50 7 30
replace_iframe()
S
50 7 28
replace_video()
S
50 7 26
url_to_path()
S
52 7 24
__construct()
S
56 5 18
inject_classes_in_tag()
S
58 5 14
add_lazyload_for_images_pagespeed()
S
66 5 7
disable_optimisation_for_images_pagespeed()
S
66 5 7
filter_lazyload_iframes()
S
59 4 14
filter_lazyload_images()
S
59 4 14
filter_lazyload_video()
S
59 4 14
build_picture_tag()
S
50 3 28
build_img_tag()
S
56 3 18
build_attributes()
S
63 4 10
generatePlaceholder()
S
60 3 13
replace_img_with_picture()
S
61 3 12
filter_optimize_html_images()
S
60 3 12
isExcludedTag()
S
67 3 8
replace_image()
S
64 3 9
disable_pagespeed_image_optimization()
S
72 2 6
instance()
S
71 2 6
image_lazyload()
S
72 2 6
remove_picture_tags()
S
68 2 7
run()
S
82 1 3
run_on_frontend()
S
69 1 6
isVideo()
S
78 1 3
should_lazyload()
S
82 1 3
get_default_lazyload_placeholder()
S
78 1 3
isImage()
S
78 1 3
get_lazyload_exclusions()
S
82 1 3
isIframe()
S
78 1 3